home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
gcc
/
ixemlsrc.lha
/
ixemul
/
ixnet
/
set_errno.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-13
|
2KB
|
46 lines
/*
* This file is part of ixnet.library for the Amiga.
* Copyright (C) 1996 Jeff Shepherd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id:$
*
* $Log:$
*
*/
/* routines that need -ffixed-a4 compiled for them */
#define KERNEL
#include "ixnet.h"
#include <amitcp/usergroup.h>
void set_errno(int *real_errno) {
struct ixnet *p = (struct ixnet *)u.u_ixnet;
if (p->u_networkprotocol == IX_NETWORK_AMITCP) {
struct TagItem ug_list[] = {
{UGT_INTRMASK, SIGBREAKB_CTRL_C},
{UGT_ERRNOPTR(sizeof(int)), (ULONG)real_errno},
{TAG_END}
};
TCP_SetErrnoPtr(p->u_TCPBase,real_errno,sizeof(*real_errno));
ug_SetupContextTagList(p->u_UserGroupBase, p->u_progname, ug_list);
}
else /*if (p->u_networkprotocol == IX_NETWORK_AS225) */
SOCK_setup_sockets(p->u_SockBase,128,real_errno);
}